﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace FizzBuzz
{
    public class FizzBuzzutility
    {
        public static List<string> GenerateFizzBuzz(int startnumber, int endnumber, string fizztoken , string buzztoken )
        {
            var result = new List<string>();

            for (int i = startnumber; i <= endnumber; i++)
            {
                if (i % 3 == 0 && i % 5 == 0)
                {
                    result.Add(fizztoken+buzztoken);
                }
                else if (i % 3 == 0)
                {
                    result.Add(fizztoken);
                }
                else if (i % 5 == 0)
                {
                    result.Add(buzztoken);
                }
                else
                {
                    result.Add(i.ToString());
                }
            }
            return result;
        }
    }
}
